package com.yuyou.tas.admin.service;

import com.yuyou.tas.admin.vo.req.ReqAuthRoleAdd;
import com.yuyou.tas.admin.vo.req.ReqAuthRoleUpdate;
import com.yuyou.tas.service.api.admin.entity.AuthRole;
import com.yuyou.tas.util.bean.Pagination;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import java.util.List;

/**
 * Created by yujin.liu on 2018/1/22.
 */
public interface IAuthRoleService {

	List<AuthRole> findAuthRoleByUserId(Long authUserId);
	
    AuthRole selectByPrimaryKey(String id);
	
    int findAuthRolePageCount(Pagination<AuthRole> p);

    List<AuthRole> findAuthRoleList(Boolean isSystem, Long organizationId);

    List<AuthRole> findAuthRolePageList(Pagination<AuthRole> p);

    ResBoolSimpleInfo insertAuthRole(ReqAuthRoleAdd authRoleAdd);

    ResBoolSimpleInfo updateAuthRole(ReqAuthRoleUpdate reqAuthRoleUpdate);

    int deleteAuthRoleById(String id);
    
    AuthRole selectUniByRoleType(int roleType);

    List<AuthRole> findAuthRoleListForOrgan();
    
    /**
     * 批量查询角色
     * @param ids
     * @return
     */
    List<AuthRole> findByIds(List<Long> ids);
}
